﻿using System;
using System.ComponentModel.DataAnnotations;
using HengTong.Model.Db.Hr.Bill;
using HengTong.Model.Interfaces;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Attributes;

namespace HengTong.Model.Db.Hr;

/// <summary>
/// 员工续签附件表（多文件）
/// </summary>
[MiddleTable]
public class SysHrRenewContractFile: BasePoco, IFileBase
{
    [Display(Name = "续签信息ID", Description = "关联的续签信息ID", GroupName = "续签信息")]
    public Guid? HrRenewRequestBillId { get; set; }

    [Display(Name = "续签信息", Description = "关联的续签信息对象", GroupName = "续签信息")]
    public SysHrRenewRequestBill HrRenewRequestBill { get; set; }

    //ISubFile定义的字段
    [Display(Name = "文件ID", Description = "文件唯一标识", GroupName = "文件信息")]
    public Guid? FileId { get; set; }

    [Display(Name = "文件", Description = "文件对象", GroupName = "文件信息")]
    public FileAttachment File { get; set; }

    [Display(Name = "排序", Description = "文件顺序", GroupName = "文件信息")]
    public int Order { get; set; }
}